/* eslint-disable */
import { axios } from '@/utils/request'

/**首页车场列表 */
export function getParklist(parameter) {
  return axios({
    url: '/share-parking/parking/app/anon/parkingSearch',
    method: 'post',
    params: parameter,
  })
}

/**地图上单位撒点 */
export function getMaplist(parameter) {
  return axios({
    url: '/share-parking/parking/app/anon/unitInfoMap',
    method: 'post',
    params: parameter,
  })
}

/**是否有车位 */
export function isHasParklot(parameter) {
  return axios({
    url: '/share-parking/parking/app/isFixSpaceNumer',
    method: 'post',
    params: parameter,
  })
}

/**临停预约车位列表 */
export function tempParklotList(parameter) {
  return axios({
    url: '/share-parking/parking/app/getTmpParkingList',
    method: 'post',
    params: parameter,
  })
}

/**包月车位列表 */
export function monthlyParklotList(parameter) {
  return axios({
    url: '/share-parking/parking/app/getMonthParkingList',
    method: 'post',
    params: parameter,
  })
}

/**临停预约 */
export function parkSpaceBook(parameter) {
  return axios({
    url: '/share-parking/parking/app/tmpParkingBook',
    method: 'post',
    data: parameter,
  })
}

/**包月 */
export function monthBook(parameter) {
  return axios({
    url: '/share-parking/parking/app/monthReserve',
    method: 'post',
    data: parameter,
  })
}
/**埋点 */
export function setLog(parameter) {
  return axios({
    url: '/share-parking/EventTracking/setLog',
    method: 'post',
    params: parameter,
  })
}
/**是否有未支付订单 */
export function isWaitingtopay(parameter) {
  return axios({
    url: '/share-parking/parking/app/isWaitingToPay',
    method: 'post',
    params: parameter,
  })
}

/**查询我的小区列表 */
export function myUnitList(parameter) {
  return axios({
    url: '/share-parking/web/personCenter/myUnitList',
    method: 'get',
    params: parameter,
  })
}

// 获取包月/预约页面所需的数据
export function findProductList(parameter) {
  return axios({
    url: '/share-parking/parking/app/findProductList',
    method: 'get',
    params: parameter,
  })
}

// 查询用户是否符合优惠条件
export function isDiscountUser(param){
  return axios({
    url:'/share-parking/web/personCenter/queryUserDiscountAuth',
    method:'get',
    params:param
  })
}

// 限牌查询
export function getTrafficControl(){
  return axios({
    url:'/share-parking/parking/app/queryTrafficLimit',
    method:'get',
  })
}

